-- GENERATED SPELL FOR [Azure Inquisitor] --


function spell0_27633(pUnit, Event) --@Arcane Cleave,n/a--
pUnit:FullCastSpellOnTarget(50573,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27633', 581, 1)
end

function spell1_27633(pUnit, Event) --@Immobilizing Field,Self--
pUnit:FullCastSpellOnTarget(50690,pUnit)
pUnit:RegisterEvent('Sorts_27633', 5000, 1)
end

function spell2_27633(pUnit, Event) --@Throw,n/a--
pUnit:FullCastSpellOnTarget(51454,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27633', 1000, 1)
end

function spell3_27633(pUnit, Event) --@Throw,n/a--
pUnit:FullCastSpellOnTarget(59209,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27633', 1000, 1)
end

function Sorts_27633(pUnit, Event)
local choix_sorts_27633 = math.random(0, 3)
if choix_sorts_27633 == 0 then
pUnit:RegisterEvent('spell0_27633', 1, 1)
end
if choix_sorts_27633 == 1 then
pUnit:RegisterEvent('spell1_27633', 1, 1)
end
if choix_sorts_27633 == 2 then
pUnit:RegisterEvent('spell2_27633', 1, 1)
end
if choix_sorts_27633 == 3 then
pUnit:RegisterEvent('spell3_27633', 1, 1)
end
end

function mob27633_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_27633', math.random(1500, 3000), 1)
end

function mob27633_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27633_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27633_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(27633, 1, 'mob27633_Action')
RegisterUnitEvent(27633, 2, 'mob27633_Leave')
RegisterUnitEvent(27633, 3, 'mob27633_Kill')
RegisterUnitEvent(27633, 4, 'mob27633_Die')
